package com.ssrs.batch.core.callback;

import cn.hutool.log.Log;
import cn.hutool.log.LogFactory;
import com.ssrs.batch.core.exception.BatchServiceException;
import org.springframework.batch.core.ExitStatus;

/**
 * 回调函数
 *
 * @author ssrs
 */
public class BatchJobCallbackSupport implements BatchJobCallback {
    private Log log = LogFactory.get(BatchJobCallbackSupport.class);

    @Override
    public void beforeSetup() {

    }

    @Override
    public void setup() {

    }

    @Override
    public void finished(ExitStatus status, String... messages) {

    }

    @Override
    public void exception(BatchServiceException e) {
        log.error(e);
    }
}
